package com.example.demo.wbgl.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.wbgl.entity.Blog;
import com.example.demo.wbgl.mapper.BlogMapper;
import com.example.demo.wbgl.service.IBlogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gongxl
 * @since 2021-06-01
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IBlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<Map<String,Object>> selectPageVo(Page<Blog> page, Blog blog) {
        return blogMapper.selectPageVo(page,blog);
    }
}
